package grad.nxu.recruitsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import grad.nxu.recruitsystem.domain.BiographicalNotes;
import grad.nxu.recruitsystem.mapper.BiographicalNotesMapper;
import grad.nxu.recruitsystem.service.BiographicalNotesService;
import grad.nxu.recruitsystem.vo.BiographicalNotesVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author HAPPY
 * @description 针对表【biographical_notes】的数据库操作Service实现
 * @createDate 2023-03-13 11:06:57
 */
@Service
public class BiographicalNotesServiceImpl extends ServiceImpl<BiographicalNotesMapper, BiographicalNotes>
        implements BiographicalNotesService {
    @Autowired
    BiographicalNotesMapper biographicalNotesMapper;

    @Override
    public List<BiographicalNotesVO> getByPage(Integer pageSize, Integer pageNumber) {
        Integer offset = pageSize * (pageNumber - 1);
        return biographicalNotesMapper.getByPage(pageSize, offset);
    }
}




